package com.muyu.danmo.domain;


import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 关注关系对象 danmo_user_follows
 *
 * @author yangle
 * @date 2024-11-15
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DanmoUserFollows extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 关注关系的记录ID（主键）
     */
    private Long followId;

    /**
     * 关注者ID（外键，关联到用户表）
     */
    @Excel(name = "关注者ID", readConverterExp = "外=键，关联到用户表")
    private Long followerId;

    /**
     * 被关注者ID（外键，关联到用户表）。
     */
    @Excel(name = "被关注者ID", readConverterExp = "外=键，关联到用户表")
    private Long followeeId;

    /**
     * 关注状态（例如“关注”、“互相关注”）。
     */
    @Excel(name = "关注状态", readConverterExp = "例=如“关注”、“互相关注”")
    private String status;

    /**
     * 用户头像
     */
    private String photos;

    /**
     * 用户名称
     */
    private String name;

    private Integer pageNum = 1;
    private Integer pageSize = 10;


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("followId", getFollowId())
                .append("followerId", getFollowerId())
                .append("followeeId", getFolloweeId())
                .append("status", getStatus())
                .toString();
    }
}
